package com.ruoyi.users.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.users.mapper.UsersTopSingersMapper;
import com.ruoyi.users.domain.UsersTopSingers;
import com.ruoyi.users.service.IUsersTopSingersService;

/**
 * 用户Top歌手Service业务层处理
 * 
 * @author lin
 * @date 2025-03-10
 */
@Service
public class UsersTopSingersServiceImpl implements IUsersTopSingersService 
{
    @Autowired
    private UsersTopSingersMapper usersTopSingersMapper;

    /**
     * 查询用户Top歌手
     * 
     * @param userId 用户Top歌手主键
     * @return 用户Top歌手
     */
    @Override
    public List<UsersTopSingers> selectUsersTopSingersByUserId(Long userId)
    {
        return usersTopSingersMapper.selectUsersTopSingersByUserId(userId);
    }

    /**
     * 查询用户Top歌手列表
     * 
     * @param usersTopSingers 用户Top歌手
     * @return 用户Top歌手
     */
    @Override
    public List<UsersTopSingers> selectUsersTopSingersList(UsersTopSingers usersTopSingers)
    {
        return usersTopSingersMapper.selectUsersTopSingersList(usersTopSingers);
    }

    /**
     * 新增用户Top歌手
     * 
     * @param usersTopSingers 用户Top歌手
     * @return 结果
     */
    @Override
    public int insertUsersTopSingers(UsersTopSingers usersTopSingers)
    {
        return usersTopSingersMapper.insertUsersTopSingers(usersTopSingers);
    }

    /**
     * 修改用户Top歌手
     * 
     * @param usersTopSingers 用户Top歌手
     * @return 结果
     */
    @Override
    public int updateUsersTopSingers(UsersTopSingers usersTopSingers)
    {
        return usersTopSingersMapper.updateUsersTopSingers(usersTopSingers);
    }

    /**
     * 批量删除用户Top歌手
     * 
     * @param userIds 需要删除的用户Top歌手主键
     * @return 结果
     */
    @Override
    public int deleteUsersTopSingersByUserIds(Long[] userIds)
    {
        return usersTopSingersMapper.deleteUsersTopSingersByUserIds(userIds);
    }

    /**
     * 删除用户Top歌手信息
     * 
     * @param userId 用户Top歌手主键
     * @return 结果
     */
    @Override
    public int deleteUsersTopSingersByUserId(Long userId)
    {
        return usersTopSingersMapper.deleteUsersTopSingersByUserId(userId);
    }
}
